#include "EntityPoint.h"

EntityPoint *
EntityPoint::create(const QPointF &pos, PointType pType)
{
    return new EntityPoint(pos.x(), pos.y(), pType);
}

EntityPoint *
EntityPoint::create(double x, double y, PointType pType)
{
    return new EntityPoint(x, y, pType);
}

EntityPoint::EntityPoint()
    : m_type(kUnknownType)
{
}

EntityPoint::EntityPoint(double x, double y, PointType ty)
    : QPointF(x, y), m_type(ty)
{
}

void
EntityPoint::setPos(const QPointF &p)
{
    QPointF::operator = (p);
}

void
EntityPoint::setPointType(PointType t)
{
    m_type = t;
}
